package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-09-06
 */
@ApiModel(value="BloodOxygenRecord对象", description="")
public class BloodOxygenRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "血氧记录主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备id",required = true)
    private Long deviceId;

    @ApiModelProperty(value = "yyyy-MM-dd",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;

    @ApiModelProperty(value = "平均血氧",required = true)
    private Integer avgBloodOxygen;

    @ApiModelProperty(value = "最低血氧",required = true)
    private Integer minBloodOxygen;

    @ApiModelProperty(value = "最高血氧",required = true)
    private String maxBloodOxygen;

    @ApiModelProperty(value = "记录一天各个时间段的数据集")
    private List<BloodOxygenInfo> listBloodOxygen;

    private String bloodOxygenInfo;

    @ApiModelProperty(value = "最后上传时间",required = false)
    private Long uploadTime;


    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getAvgBloodOxygen() {
        return avgBloodOxygen;
    }

    public void setAvgBloodOxygen(Integer avgBloodOxygen) {
        this.avgBloodOxygen = avgBloodOxygen;
    }

    public Integer getMinBloodOxygen() {
        return minBloodOxygen;
    }

    public void setMinBloodOxygen(Integer minBloodOxygen) {
        this.minBloodOxygen = minBloodOxygen;
    }

    public String getMaxBloodOxygen() {
        return maxBloodOxygen;
    }

    public void setMaxBloodOxygen(String maxBloodOxygen) {
        this.maxBloodOxygen = maxBloodOxygen;
    }

    public String getBloodOxygenInfo() {
        return bloodOxygenInfo;
    }

    public void setBloodOxygenInfo(String bloodOxygenInfo) {
        this.bloodOxygenInfo = bloodOxygenInfo;
    }

    public List<BloodOxygenInfo> getListBloodOxygen() {
        return listBloodOxygen;
    }

    public void setListBloodOxygen(List<BloodOxygenInfo> listBloodOxygen) {
        this.listBloodOxygen = listBloodOxygen;
    }

    @Override
    public String toString() {
        return "BloodOxygenRecord{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", time=" + time +
                ", avgBloodOxygen=" + avgBloodOxygen +
                ", minBloodOxygen=" + minBloodOxygen +
                ", maxBloodOxygen='" + maxBloodOxygen + '\'' +
                ", listBloodOxygen=" + listBloodOxygen +
                ", uploadTime=" + uploadTime +
                ", bloodOxygenInfo='" + bloodOxygenInfo + '\'' +
                '}';
    }
}
